<!--$Id: intro.so,v 10.35 2007/10/31 18:02:52 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Building for UNIX/POSIX</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a><a name="3"><!--meow--></a><a name="4"><!--meow--></a><a name="5"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
<td align=right><a href="../build_s60/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/conf.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Building for UNIX/POSIX</b></p>
<p>The Berkeley DB distribution builds up to four separate libraries: the base
C API Berkeley DB library and the optional C++, Java, and Tcl API libraries.
For portability reasons, each library is standalone and contains the
full Berkeley DB support necessary to build applications; that is, the C++
API Berkeley DB library does not require any other Berkeley DB libraries to build
and run C++ applications.</p>
<p>Building for Linux, Mac OS X and the QNX Neutrino release is the same
as building for a conventional UNIX platform.</p>
<p>The Berkeley DB distribution uses the Free Software Foundation's
<a href="http://www.gnu.org/software/autoconf/autoconf.html">autoconf</a>
and <a href="http://www.gnu.org/software/libtool/libtool.html">libtool</a> tools to build on UNIX platforms.  In general, the standard
configuration and installation options for these tools apply to the
Berkeley DB distribution.</p>
<p>To do a standard UNIX build of Berkeley DB, change to the <b>build_unix</b>
directory and then enter the following two commands:</p>
<blockquote><pre>../dist/configure
make</pre></blockquote>
<p>This will build the Berkeley DB library.</p>
<p>To install the Berkeley DB library, enter the following command:</p>
<blockquote><pre>make install</pre></blockquote>
<p>To rebuild Berkeley DB, enter:</p>
<blockquote><pre>make clean
make</pre></blockquote>
<p>If you change your mind about how Berkeley DB is to be configured, you must
start from scratch by entering the following command:</p>
<blockquote><pre>make realclean
../dist/configure
make</pre></blockquote>
<p>To uninstall Berkeley DB, enter:</p>
<blockquote><pre>make uninstall</pre></blockquote>
<p>To build multiple UNIX versions of Berkeley DB in the same source tree, create
a new directory at the same level as the build_unix directory, and then
configure and build in that directory as described previously.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../build_s60/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/conf.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>
